import $axios from "@/utils/request.js";

export function getDatabaseConfigList(searchParam) {
    return $axios({
        url: `/api/v2/database/config/list`,
        method: 'get',
        params: searchParam
    });
}

export function saveDatabaseConfig(data) {
    return $axios({
        url: `/api/v2/database/config/save`,
        method: 'post',
        data
    });
}

export function removeDatabaseConfig(id) {
    return $axios({
        url: `/api/v2/database/config/remove/${id}`,
        method: 'Delete'
    });
}